package com.yeswater.multithread.chapter7;

/**
 * author : yeswater
 * date : 2023/11/6
 *
 * 线程组内加线程组
 */

public class Run_7_2_5 {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName());
        System.out.println(Thread.currentThread().getThreadGroup().activeGroupCount());
        ThreadGroup newGroup = new ThreadGroup("newGroup");
        System.out.println("==== ====");
        System.out.println(Thread.currentThread().getThreadGroup().activeGroupCount());
        System.out.println(Thread.currentThread().getThreadGroup().getParent().getName());
    }
}
